package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SocDispatchEmpItemExample.E_AMOUNT_ALL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_AMOUNT_COMPANY;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_AMOUNT_PERSONAL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_CARDINALITY_DEFAULT;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_CARDINALITY_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_CARDINALITY_MIN;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_CARDINALITY_PERSON;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_EMP_DISPATCH_SOC_ID;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_ERROR_MSG;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_ITEM_NAME;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_ITEM_REMARK;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_ITEM_TYPE;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_MANTISSA_PROC_COMPANY;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_MANTISSA_PROC_PERSONAL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_NO_ERROR;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_PERSENT_COMPANY;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_PERSENT_PERSONAL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_SOC_DISPATCH_ID;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_SOC_PROG_ID;
import static org.jsola.hr.example.SocDispatchEmpItemExample.E_SORT;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_EMP_DISPATCH_SOC_ID_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_EMP_DISPATCH_SOC_ID_NOT_NULL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_ERROR_MSG_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_ITEM_NAME_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_ITEM_REMARK_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_ITEM_TYPE_NOT_NULL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_MANTISSA_PROC_COMPANY_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_MANTISSA_PROC_PERSONAL_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_SOC_DISPATCH_ID_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.M_SOC_PROG_ID_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_AMOUNT_ALL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_AMOUNT_COMPANY;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_AMOUNT_PERSONAL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_CARDINALITY_DEFAULT;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_CARDINALITY_MAX;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_CARDINALITY_MIN;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_CARDINALITY_PERSON;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_EMP_DISPATCH_SOC_ID;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_ERROR_MSG;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_ITEM_NAME;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_ITEM_REMARK;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_ITEM_TYPE;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_MANTISSA_PROC_COMPANY;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_MANTISSA_PROC_PERSONAL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_NO_ERROR;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_PERSENT_COMPANY;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_PERSENT_PERSONAL;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_SOC_DISPATCH_ID;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_SOC_PROG_ID;
import static org.jsola.hr.example.SocDispatchEmpItemExample.N_SORT;

/**
 * 社保派单员工表_增员子项
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【社保派单员工表_增员子项】的参数")
@Data
public class SocDispatchEmpItemAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_SOC_DISPATCH_ID, example = E_SOC_DISPATCH_ID)
    @Length(max = 32, message = M_SOC_DISPATCH_ID_MAX)
    private String socDispatchId;

    @ApiModelProperty(notes = N_EMP_DISPATCH_SOC_ID, example = E_EMP_DISPATCH_SOC_ID, required = true)
    @NotNull(message = M_EMP_DISPATCH_SOC_ID_NOT_NULL)
    @Length(max = 32, message = M_EMP_DISPATCH_SOC_ID_MAX)
    private String empDispatchSocId;

    @ApiModelProperty(notes = N_SOC_PROG_ID, example = E_SOC_PROG_ID)
    @Length(max = 32, message = M_SOC_PROG_ID_MAX)
    private String socProgId;

    @ApiModelProperty(notes = N_ITEM_TYPE, example = E_ITEM_TYPE, required = true)
    @NotNull(message = M_ITEM_TYPE_NOT_NULL)
    private Integer itemType;

    @ApiModelProperty(notes = N_ITEM_NAME, example = E_ITEM_NAME)
    @Length(max = 100, message = M_ITEM_NAME_MAX)
    private String itemName;

    @ApiModelProperty(notes = N_CARDINALITY_PERSON, example = E_CARDINALITY_PERSON)
    private BigDecimal cardinalityPerson;

    @ApiModelProperty(notes = N_CARDINALITY_DEFAULT, example = E_CARDINALITY_DEFAULT)
    private BigDecimal cardinalityDefault;

    @ApiModelProperty(notes = N_CARDINALITY_MIN, example = E_CARDINALITY_MIN)
    private BigDecimal cardinalityMin;

    @ApiModelProperty(notes = N_CARDINALITY_MAX, example = E_CARDINALITY_MAX)
    private BigDecimal cardinalityMax;

    @ApiModelProperty(notes = N_PERSENT_COMPANY, example = E_PERSENT_COMPANY)
    private BigDecimal persentCompany;

    @ApiModelProperty(notes = N_PERSENT_PERSONAL, example = E_PERSENT_PERSONAL)
    private BigDecimal persentPersonal;

    @ApiModelProperty(notes = N_AMOUNT_COMPANY, example = E_AMOUNT_COMPANY)
    private BigDecimal amountCompany;

    @ApiModelProperty(notes = N_AMOUNT_PERSONAL, example = E_AMOUNT_PERSONAL)
    private BigDecimal amountPersonal;

    @ApiModelProperty(notes = N_AMOUNT_ALL, example = E_AMOUNT_ALL)
    private BigDecimal amountAll;

    @ApiModelProperty(notes = N_MANTISSA_PROC_COMPANY, example = E_MANTISSA_PROC_COMPANY)
    @Length(max = 100, message = M_MANTISSA_PROC_COMPANY_MAX)
    private String mantissaProcCompany;

    @ApiModelProperty(notes = N_MANTISSA_PROC_PERSONAL, example = E_MANTISSA_PROC_PERSONAL)
    @Length(max = 100, message = M_MANTISSA_PROC_PERSONAL_MAX)
    private String mantissaProcPersonal;

    @ApiModelProperty(notes = N_ITEM_REMARK, example = E_ITEM_REMARK)
    @Length(max = 2147483647, message = M_ITEM_REMARK_MAX)
    private String itemRemark;

    @ApiModelProperty(notes = N_NO_ERROR, example = E_NO_ERROR)
    private Boolean noError;

    @ApiModelProperty(notes = N_ERROR_MSG, example = E_ERROR_MSG)
    @Length(max = 2147483647, message = M_ERROR_MSG_MAX)
    private String errorMsg;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;


}

